{include file="public/layout" /}
<style type="text/css">
    a.link_names {
        background-color: #F5F5F5; border: none; margin-right: 5px;
    }
    a.link_active {
        background-color: rgb(51, 152, 204); border: none; margin-right: 5px; color: rgb(255, 255, 255);
    }
    a:hover.ncap-btn {
        text-decoration: none;
        color: rgb(255, 255, 255);
        background-color: rgb(51, 152, 204);
        border: none;
    }
</style>

<body class="eyou_body_xin arctype">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div class="sidebar-second order-navBox" style="min-height: calc(100% - 7px);padding-top: 5px;height: unset;border-bottom: 1px solid #f0f0f0;border-top: 1px solid #f0f0f0;>
    
    <ul id="accordion" class="accordion">
        <li>
            <ul class="submenu">
                <li>
                    <a href="/login.php?m=admin&amp;c=Other&amp;a=link" class="current">基础链接</a>
                </li>
                <li>
                    <a href="/login.php?m=admin&amp;c=Other&amp;a=link&amp;ad_host_id=3">文章列表</a>
                </li>
                <li>
                    <a href="/login.php?m=admin&amp;c=Other&amp;a=link&amp;ad_host_id=4">分类管理</a>
                </li>
            </ul>
        </li>
    </ul>
</div>

<div id="page_div" class="page min-hg-c mb-20"
    style="min-width: auto;box-shadow: none;margin-left: 101px;padding-bottom: 15px;min-height: calc(100% - 32px);border-bottom: 1px solid #f0f0f0;border-top: 1px solid #f0f0f0;">
    <div class="flexigrid">
        <div id="" class="explanation mb10">
            <ul>
                <li class="red">写给开发看的，开发完成后，请删除</li>
                <li class="red">易优shop项目有此功能，可以对照参考。易优shop项目路径文件/application/admin/template/other/link.htm</li>
                <li class="red">对接后样式有问题我再修改</li>
            </ul>
        </div>
        <span style="font-size: 14px;">基础链接</span>
        <div style="margin-top: 10px;">
            <a class="ncap-btn link_names " data-id="1" data-host_id="1" data-names="主页"
                onclick="selectLink(this);">主页</a>
            <textarea id="jsondata_1"
                style="display: none;">{"link_id":1,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u4e3b\u9875","link_pahts":"\/pages\/index\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="2" data-host_id="1" data-names="购物车"
                onclick="selectLink(this);">购物车</a>
            <textarea id="jsondata_2"
                style="display: none;">{"link_id":2,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u8d2d\u7269\u8f66","link_pahts":"\/pages\/flow\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="3" data-host_id="1" data-names="商品分类"
                onclick="selectLink(this);">商品分类</a>
            <textarea id="jsondata_3"
                style="display: none;">{"link_id":3,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u5546\u54c1\u5206\u7c7b","link_pahts":"\/pages\/classify\/classify","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="22" data-host_id="1" data-names="优惠券列表"
                onclick="selectLink(this);">优惠券列表</a>
            <textarea id="jsondata_22"
                style="display: none;">{"link_id":22,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u4f18\u60e0\u5238\u5217\u8868","link_pahts":"\/pages\/coupon\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="23" data-host_id="1" data-names="积分商城"
                onclick="selectLink(this);">积分商城</a>
            <textarea id="jsondata_23"
                style="display: none;">{"link_id":23,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u79ef\u5206\u5546\u57ce","link_pahts":"\/pages\/user\/integral\/pointMall","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="24" data-host_id="1" data-names="今日爆款"
                onclick="selectLink(this);">今日爆款</a>
            <textarea id="jsondata_24"
                style="display: none;">{"link_id":24,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u4eca\u65e5\u7206\u6b3e","link_pahts":"\/pages\/product\/list?orderway=desc&amp;orderby=total_sales_num","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="25" data-host_id="1" data-names="帮助中心"
                onclick="selectLink(this);">帮助中心</a>
            <textarea id="jsondata_25"
                style="display: none;">{"link_id":25,"host_id":1,"host_title":"\u57fa\u7840\u94fe\u63a5","link_names":"\u5e2e\u52a9\u4e2d\u5fc3","link_pahts":"\/pages\/help\/list","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
        </div>
        <div>&nbsp;</div>
        <div>&nbsp;</div> <span style="font-size: 14px;">会员中心</span>
        <div style="margin-top: 10px;">
            <a class="ncap-btn link_names " data-id="4" data-host_id="2" data-names="会员中心"
                onclick="selectLink(this);">会员中心</a>
            <textarea id="jsondata_4"
                style="display: none;">{"link_id":4,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u4f1a\u5458\u4e2d\u5fc3","link_pahts":"\/pages\/user\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="5" data-host_id="2" data-names="全部订单"
                onclick="selectLink(this);">全部订单</a>
            <textarea id="jsondata_5"
                style="display: none;">{"link_id":5,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u5168\u90e8\u8ba2\u5355","link_pahts":"\/pages\/order\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="6" data-host_id="2" data-names="待付款订单"
                onclick="selectLink(this);">待付款订单</a>
            <textarea id="jsondata_6"
                style="display: none;">{"link_id":6,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u5f85\u4ed8\u6b3e\u8ba2\u5355","link_pahts":"\/pages\/order\/index?type=payment","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="7" data-host_id="2" data-names="待发货订单"
                onclick="selectLink(this);">待发货订单</a>
            <textarea id="jsondata_7"
                style="display: none;">{"link_id":7,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u5f85\u53d1\u8d27\u8ba2\u5355","link_pahts":"\/pages\/order\/index?type=delivery","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="8" data-host_id="2" data-names="待收货订单"
                onclick="selectLink(this);">待收货订单</a>
            <textarea id="jsondata_8"
                style="display: none;">{"link_id":8,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u5f85\u6536\u8d27\u8ba2\u5355","link_pahts":"\/pages\/order\/index?type=received","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="9" data-host_id="2" data-names="待评价订单"
                onclick="selectLink(this);">待评价订单</a>
            <textarea id="jsondata_9"
                style="display: none;">{"link_id":9,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u5f85\u8bc4\u4ef7\u8ba2\u5355","link_pahts":"\/pages\/order\/index?type=complete","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="10" data-host_id="2" data-names="售后订单"
                onclick="selectLink(this);">售后订单</a>
            <textarea id="jsondata_10"
                style="display: none;">{"link_id":10,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u552e\u540e\u8ba2\u5355","link_pahts":"\/pages\/service\/order\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="11" data-host_id="2" data-names="我的余额"
                onclick="selectLink(this);">我的余额</a>
            <textarea id="jsondata_11"
                style="display: none;">{"link_id":11,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u6211\u7684\u4f59\u989d","link_pahts":"\/pages\/user\/wallet\/wallet","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="12" data-host_id="2" data-names="我的积分"
                onclick="selectLink(this);">我的积分</a>
            <textarea id="jsondata_12"
                style="display: none;">{"link_id":12,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u6211\u7684\u79ef\u5206","link_pahts":"\/pages\/user\/point\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="16" data-host_id="2" data-names="我的收藏"
                onclick="selectLink(this);">我的收藏</a>
            <textarea id="jsondata_16"
                style="display: none;">{"link_id":16,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u6211\u7684\u6536\u85cf","link_pahts":"\/pages\/user\/collect\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="17" data-host_id="2" data-names="个人资料"
                onclick="selectLink(this);">个人资料</a>
            <textarea id="jsondata_17"
                style="display: none;">{"link_id":17,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u4e2a\u4eba\u8d44\u6599","link_pahts":"\/pages\/user\/edit\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="18" data-host_id="2" data-names="收货地址"
                onclick="selectLink(this);">收货地址</a>
            <textarea id="jsondata_18"
                style="display: none;">{"link_id":18,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u6536\u8d27\u5730\u5740","link_pahts":"\/pages\/address\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
            <a class="ncap-btn link_names " data-id="19" data-host_id="2" data-names="优惠券"
                onclick="selectLink(this);">优惠券</a>
            <textarea id="jsondata_19"
                style="display: none;">{"link_id":19,"host_id":2,"host_title":"\u4f1a\u5458\u4e2d\u5fc3","link_names":"\u4f18\u60e0\u5238","link_pahts":"\/pages\/user\/coupon\/index","link_url":"","sort_order":100,"status":1,"add_time":0,"update_time":0}</textarea>
        </div>
    </div>
</div>
<input type="hidden" id="link_id" value="{$linkInfo['link_id']|default=''}">
<input type="hidden" id="host_id" value="{$linkInfo['host_id']|default=''}">
<input type="hidden" id="link_names" value="{$linkInfo['link_names']|default=''}">
<textarea id="link_jsondata" style="display: none;">{notempty name="$linkInfo['link_id']"}{$linkInfo|json_encode=###}{/notempty}</textarea>

<script type="text/javascript">
    function selectLink(obj) {
        var link_id = $(obj).attr('data-id');
        $('#link_id').val(link_id);
        $('#host_id').val($(obj).attr('data-host_id'));
        $('#link_names').val($(obj).attr('data-names'));
        $('#link_jsondata').val($('#jsondata_'+link_id).val());
        $('.link_names').removeClass('link_active');
        $(obj).addClass('link_active');
    }
</script>

{include file="public/footer" /}